<%@page import="com.googlecode.objectify.Query"%>
<%@page import="models.Domain"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="java.util.ArrayList"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%@page import="java.util.Date"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@page import="java.util.List"%>
<%
	String title = "Rss - moodify.info";
	String description = "Rss - moodify.info - Find information domain,lookup ip,lookup whois,network tool,check pr with moodify.info";
	Query<Domain> domainList= (Query<Domain>)request.getAttribute("domainList");
	%>
<?xml version="1.0" encoding="UTF-8"?>
  <rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
	
    <channel>
    
    <title><![CDATA[ <%=title %>]]></title>
    <link>http://www.moodify.info</link>
    <description><![CDATA[<%=description %>]]></description>
    <dc:language>en-ca</dc:language>
    <dc:creator>google app engine</dc:creator>

    <dc:rights>Copyright 2011</dc:rights>
    <admin:generatorAgent rdf:resource="http://www.moodify.info" />
			<%
			for (Domain ar: domainList) {
			%>
		       <item>
		          <title><![CDATA[ <%=(ar.getTitle() != null&&!ar.getTitle().equals("null"))?ar.getTitle():ar.getDomain() %> ]]></title>
		          <link>http://www.moodify.info/site/<%=ar.getDomain() %></link>
		          <guid>http://www.moodify.info/site/<%=ar.getDomain() %></guid>
		
		          <description><![CDATA[ 
		          <%=(ar.getDescription() != null&&!ar.getDescription().getValue().equals("null"))?ar.getDescription().getValue():ar.getDomain() %>
		          ]]></description>
		      	  <pubDate>
		      	  	<%=ar.getDate().toGMTString()%>
		      	  </pubDate>
		       </item>
       <%
			}
    	
       %>
    </channel>
</rss>  